import request from '/src/utils/request'

// 查询组织限制列表
export function listOrganize(data) {
    return request({
        headers:{
            repeatSubmit: false,
        },
        url: '/system/organize/list',
        method: 'post',
        data: data
    })
}

// 查询组织限制详细
export function getOrganize(orgId) {
    return request({
        headers:{
            repeatSubmit: false,
        },
        isLoading: true,
        url: '/system/organize/getInfo',
        method: 'post',
        data: {
            id: orgId
        }
    })
}

// 新增组织限制
export function addOrganize(data) {
    return request({
        isLoading: true,
        url: '/system/organize',
        method: 'post',
        data: data
    })
}

// 修改组织限制
export function updateOrganize(data) {
    return request({
        isLoading: true,
        url: '/system/organize',
        method: 'put',
        data: data
    })
}

// 删除组织限制
export function delOrganize(orgId) {
    return request({
        isLoading: true,
        url: '/system/organize/' + orgId,
        method: 'delete'
    })
}
